﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;

namespace TomVanGaever.SharePoint.VS2010.BCSForm
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main(string[] args)
        {
			try
			{
				Application.EnableVisualStyles();
				Application.SetCompatibleTextRenderingDefault(false);
				BCSArguments pa = new BCSArguments(args);
				TomVanGaever.BCS.Parser.BCSParserUtility.Initiate(pa.Location);
			}
			catch (Exception ex) {
				MessageBox.Show(ex.ToString(), "An unexpected exception occured", MessageBoxButtons.OK, MessageBoxIcon.Error);
			}
        }
    }
}
